module OrderHelper

  def self.get_order_state_text(state)

    case state
      when "generation"
        order_status = "待付款"
      when "paid"
        order_status = "待接单"
      when "take"
        order_status = "待接货"
      when "distribution"
        order_status = "配送中"
      when "receive"
        order_status = "配送完成"
      when "refunding"
        order_status = "退款中"
      when "cancelled"
        order_status = "已取消"
      when "completed"
        order_status = "已完成"
    end
    return order_status;
  end

end
